<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>

<body>
  <script>
    function Car(name, age) {
      this.name = name;
      this.age = age;
    }
    Car.prototype.run = function () { }
    Car.prototype.jiayou = function () { }
    var benchi = new Car("奔驰", "4")
    // constructor 构造 对象的父级构造函数
    // console.log(benchi.constructor)
    console.log(benchi)
    // benchi.__proto__ ===Car.prototype
    // __proto__ 隐式原型 指向上层构造的原型prototype 最终指向null
    // 
    console.log(benchi.__proto__) //Car.prototype
    console.log(benchi.__proto__.__proto__) //Object.prototype
    console.log(benchi.__proto__.__proto__.__proto__) //null



  </script>
</body>

</html>